Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

Yield action intent types

Link copied to clipboard

Yield action status

Link copied to clipboard
data class YieldXyzActionTransaction(val id: String, val title: String, val network: String, val status: YieldXyzActionTransactionStatus, val type: YieldXyzActionTransactionType, val hash: String? = null, val createdAt: String, val broadcastedAt: String? = null, val signedTransaction: String? = null, val unsignedTransaction: String? = null, val annotatedTransaction: Map<String, Any>? = null, val structuredTransaction: Map<String, Any>? = null, val stepIndex: Int, val description: String? = null, val error: String? = null, val gasEstimate: String? = null, val explorerUrl: String? = null, val isMessage: Boolean? = null)

Yield action transaction

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Yield action types

Link copied to clipboard
data class YieldXyzArgument(val fields: List<YieldXyzArgumentField>, val notes: String? = null)

Argument definition

Link copied to clipboard
data class YieldXyzArgumentField(val name: YieldXyzArgumentFieldName, val type: YieldXyzArgumentFieldType, val label: String, val description: String? = null, val required: Boolean? = null, val options: List<String>? = null, val optionsRef: String? = null, val default: Map<String, Any>? = null, val placeholder: String? = null, val minimum: String? = null, val maximum: String? = null, val isArray: Boolean? = null)

Argument field definition

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class YieldXyzArguments(val enter: YieldXyzArgument, val exit: YieldXyzArgument, val manage: Map<String, Any>? = null, val balance: YieldXyzArgument? = null)

Arguments for yield operations

Link copied to clipboard
data class YieldXyzBalance(val address: String, val amount: String, val amountRaw: String, val type: String, val token: YieldXyzBalanceToken, val pendingActions: List<YieldXyzBalancePendingAction> = emptyList(), val amountUsd: String? = null, val isEarning: Boolean? = null)
Link copied to clipboard
data class YieldXyzBalancePendingAction(val intent: YieldXyzActionIntent, val type: YieldXyzActionType, val passthrough: String, val arguments: YieldXyzArgument? = null)
Link copied to clipboard
data class YieldXyzBalanceQuery(val address: String, val network: String, val yieldId: String? = null)
Link copied to clipboard
data class YieldXyzBalanceToken(val address: String, val symbol: String, val name: String, val decimals: Int, val logoURI: String? = null, val network: String, val isPoints: Boolean? = null)
Link copied to clipboard
data class YieldXyzCooldownPeriod(val seconds: Long)

Cooldown period information

Link copied to clipboard
data class YieldXyzEnterArguments(val amount: String? = null, val validatorAddress: String? = null, val validatorAddresses: List<String>? = null, val providerId: String? = null, val duration: Int? = null, val inputToken: String? = null, val subnetId: Int? = null, val tronResource: YieldXyzTronResource? = null, val feeConfigurationId: String? = null, val cosmosPubKey: String? = null, val tezosPubKey: String? = null, val cAddressBech: String? = null, val pAddressBech: String? = null, val executionMode: YieldXyzExecutionMode? = null, val ledgerWalletApiCompatible: Boolean? = null)

Arguments for entering a yield opportunity

Link copied to clipboard
data class YieldXyzEnterRawResponse(val id: String, val intent: YieldXyzActionIntent, val type: YieldXyzActionType, val yieldId: String, val address: String, val amount: String? = null, val amountRaw: String? = null, val amountUsd: String? = null, val transactions: List<YieldXyzActionTransaction>, val executionPattern: YieldXyzActionExecutionPattern, val rawArguments: YieldXyzEnterArguments? = null, val createdAt: String, val completedAt: String? = null, val status: YieldXyzActionStatus)
Link copied to clipboard
data class YieldXyzEnterRequest(val yieldId: String, val address: String, val arguments: YieldXyzEnterArguments? = null)

Request to enter a yield opportunity

Link copied to clipboard
Link copied to clipboard
data class YieldXyzEnterYieldResponse(val data: YieldXyzEnterYieldData? = null, val error: String? = null)

Response from entering a yield opportunity

Link copied to clipboard
data class YieldXyzEntryLimits(val minimum: String? = null, val maximum: String? = null)

Entry limits information

Link copied to clipboard

Execution modes for yield actions

Link copied to clipboard
data class YieldXyzExitData(val rawResponse: YieldXyzExitRawResponse)
Link copied to clipboard
data class YieldXyzExitRawResponse(val id: String, val intent: YieldXyzActionIntent, val type: YieldXyzActionType, val yieldId: String, val address: String, val amount: String? = null, val amountRaw: String? = null, val amountUsd: String? = null, val transactions: List<YieldXyzActionTransaction>, val executionPattern: YieldXyzActionExecutionPattern, val rawArguments: YieldXyzEnterArguments? = null, val createdAt: String, val completedAt: String? = null, val status: YieldXyzActionStatus)
Link copied to clipboard
data class YieldXyzExitRequest(val yieldId: String, val address: String, val arguments: YieldXyzEnterArguments? = null)

Request to exit a yield opportunity

Link copied to clipboard
data class YieldXyzExitResponse(val data: YieldXyzExitData? = null, val error: String? = null)

Response from exiting a yield opportunity

Link copied to clipboard
data class YieldXyzFee(val deposit: Double, val withdrawal: Double, val performance: Double, val management: Double)

Fee information

Link copied to clipboard
Link copied to clipboard
data class YieldXyzGetBalancesItem(val yieldId: String, val balances: List<YieldXyzBalance>)
Link copied to clipboard
data class YieldXyzGetBalancesMetadata(val clientId: String? = null)
Link copied to clipboard
data class YieldXyzGetBalancesRawResponse(val items: List<YieldXyzGetBalancesItem>, val errors: List<String> = emptyList())
Link copied to clipboard

Request to get yield balances for specific addresses and networks

Link copied to clipboard
data class YieldXyzGetBalancesResponse(val data: YieldXyzGetBalancesData? = null, val error: String? = null, val metadata: YieldXyzGetBalancesMetadata? = null)

Response from getting yield balances

Link copied to clipboard
data class YieldXyzGetHistoricalActionsRawResponse(val items: List<YieldXyzEnterRawResponse>, val total: Int? = null, val offset: Int? = null, val limit: Int? = null)
Link copied to clipboard
data class YieldXyzGetHistoricalActionsRequest(val offset: Int? = null, val limit: Int? = null, val address: String? = null, val status: YieldXyzActionStatus? = null, val intent: YieldXyzActionIntent? = null, val type: YieldXyzActionType? = null, val yieldId: String? = null)

Request to get historical yield actions with optional filtering

Link copied to clipboard
data class YieldXyzGetHistoricalActionsResponse(val data: YieldXyzGetHistoricalActionsData? = null, val error: String? = null, val metadata: YieldXyzGetBalancesMetadata? = null)

Response for fetching yield actions list for an address

Link copied to clipboard
Link copied to clipboard
data class YieldXyzGetTransactionMetadata(val clientId: String? = null, val transactionId: String? = null)
Link copied to clipboard
data class YieldXyzGetTransactionRawResponse(val id: String, val title: String, val network: String, val status: YieldXyzActionTransactionStatus, val type: YieldXyzActionTransactionType, val hash: String? = null, val createdAt: String, val broadcastedAt: String? = null, val signedTransaction: String? = null, val unsignedTransaction: String? = null, val stepIndex: Int, val gasEstimate: String? = null)

Mirrors a single transaction object returned by the Yield.xyz actions API.

Link copied to clipboard
data class YieldXyzGetTransactionResponse(val data: YieldXyzGetTransactionData? = null, val error: String? = null, val metadata: YieldXyzGetTransactionMetadata? = null)

Response for fetching a single yield action transaction by ID

Link copied to clipboard
Link copied to clipboard
data class YieldXyzGetYieldsRawResponse(val items: List<YieldXyzOpportunity>, val limit: Int, val offset: Int, val total: Int)
Link copied to clipboard
data class YieldXyzGetYieldsRequest(val offset: Int? = null, val limit: Int? = null, val network: String? = null, val yieldId: String? = null, val type: YieldXyzMechanicsType? = null, val hasCooldownPeriod: Boolean? = null, val hasWarmupPeriod: Boolean? = null, val token: String? = null, val inputToken: String? = null, val provider: String? = null, val search: String? = null, val sort: YieldXyzGetYieldsSort? = null)

Request parameters for getting yield opportunities from Yield.xyz

Link copied to clipboard
data class YieldXyzGetYieldsResponse(val data: YieldXyzGetYieldsData? = null, val error: String? = null)

Response containing yield opportunities from Yield.xyz

Link copied to clipboard

Sort options for yield opportunities

Link copied to clipboard
data class YieldXyzLockupPeriod(val seconds: Long)

Lockup period information

Link copied to clipboard
Link copied to clipboard
data class YieldXyzManageYieldRawResponse(val id: String, val intent: YieldXyzActionIntent, val type: YieldXyzActionType, val yieldId: String, val address: String, val amount: String? = null, val amountRaw: String? = null, val amountUsd: String? = null, val transactions: List<YieldXyzActionTransaction>, val executionPattern: YieldXyzActionExecutionPattern, val rawArguments: YieldXyzEnterArguments? = null, val createdAt: String, val completedAt: String? = null, val status: YieldXyzActionStatus)
Link copied to clipboard
data class YieldXyzManageYieldRequest(val yieldId: String, val address: String, val arguments: YieldXyzEnterArguments? = null, val action: YieldXyzActionType, val passthrough: String)

Request to manage a yield opportunity

Link copied to clipboard
data class YieldXyzManageYieldResponse(val data: YieldXyzManageYieldData? = null, val error: String? = null)

Response from managing a yield opportunity

Link copied to clipboard
data class YieldXyzMechanics(val type: YieldXyzMechanicsType, val requiresValidatorSelection: Boolean, val rewardSchedule: YieldXyzRewardSchedule, val rewardClaiming: YieldXyzRewardClaiming, val gasFeeToken: YieldXyzToken, val lockupPeriod: YieldXyzLockupPeriod? = null, val cooldownPeriod: YieldXyzCooldownPeriod? = null, val warmupPeriod: YieldXyzWarmupPeriod? = null, val fee: YieldXyzFee? = null, val entryLimits: YieldXyzEntryLimits, val supportsLedgerWalletApi: Boolean, val extraTransactionFormatsSupported: List<String>? = null, val arguments: YieldXyzArguments, val possibleFeeTakingMechanisms: YieldXyzPossibleFeeTakingMechanisms)

Mechanics information for a yield opportunity

Link copied to clipboard

Yield mechanics types

Link copied to clipboard
data class YieldXyzOpportunity(val id: String, val network: String, val inputTokens: List<YieldXyzToken>, val outputToken: YieldXyzToken, val token: YieldXyzToken, val rewardRate: YieldXyzRewardRate, val statistics: YieldXyzStatistics? = null, val status: YieldXyzStatus, val metadata: YieldXyzOpportunityMetadata, val mechanics: YieldXyzMechanics, val providerId: String, val tags: List<String>)

A yield opportunity

Link copied to clipboard
data class YieldXyzOpportunityMetadata(val name: String, val logoURI: String, val description: String, val documentation: String, val underMaintenance: Boolean, val deprecated: Boolean, val supportedStandards: List<String>)

Metadata for a yield opportunity

Link copied to clipboard
data class YieldXyzPossibleFeeTakingMechanisms(val depositFee: Boolean, val managementFee: Boolean, val performanceFee: Boolean, val validatorRebates: Boolean)

Possible fee taking mechanisms

Link copied to clipboard

Rate type enum

Link copied to clipboard
Link copied to clipboard
data class YieldXyzRewardRate(val total: Double, val rateType: YieldXyzRateType, val components: List<YieldXyzRewardRateComponent>)

Reward rate information

Link copied to clipboard
data class YieldXyzRewardRateComponent(val rate: Double, val rateType: YieldXyzRateType, val token: YieldXyzToken, val yieldSource: YieldXyzSource, val description: String)

Reward rate component

Link copied to clipboard
Link copied to clipboard

Yield source enum

Link copied to clipboard
data class YieldXyzStatistics(val tvlUsd: String? = null, val tvl: Double? = null, val uniqueUsers: Int? = null, val averagePositionSizeUsd: Double? = null, val averagePositionSize: Double? = null)

Statistics for a yield opportunity

Link copied to clipboard
data class YieldXyzStatus(val enter: Boolean, val exit: Boolean)

Status of a yield opportunity

Link copied to clipboard
data class YieldXyzToken(val symbol: String, val name: String, val decimals: Int? = null, val network: String? = null, val address: String? = null, val logoURI: String? = null, val isPoints: Boolean? = null, val coinGeckoId: String? = null)

Token information

Link copied to clipboard
data class YieldXyzTrackTransactionRawResponse(val id: String, val title: String, val network: String, val status: YieldXyzActionTransactionStatus, val type: YieldXyzActionTransactionType, val hash: String? = null, val createdAt: String, val broadcastedAt: String? = null, val signedTransaction: String? = null, val unsignedTransaction: String? = null, val stepIndex: Int, val gasEstimate: String? = null)
Link copied to clipboard
data class YieldXyzTrackTransactionRequest(val transactionId: String, val hash: String)

Request to submit a transaction hash for tracking

Link copied to clipboard
data class YieldXyzTrackTransactionResponse(val data: YieldXyzTrackTransactionData? = null, val error: String? = null)

Response from submitting a transaction hash

Link copied to clipboard

Tron resource types

Link copied to clipboard
data class YieldXyzWarmupPeriod(val seconds: Long)

Warmup period information